That is not true. The specific powers of arrest and detention by UK border force were set out in this freedom of information response here https://www.whatdotheyknow.com/request/uk_border_force_power...
Summary is they can’t detain people for no reason, they can detain people for specific offences relating to immigration and citizenship, customs and excise and also the normal stuff any regular police officer can arrest people for.
I’m no apologist for how much state authority they have, but it’s not as bad as you’re making out.
It is true.
The UK border agents (technically counter-terrorism) can stop you at the border, force you into a room, ask for your passwords to all your devices and you don't have the right to refuse.
You also don't have the right to a lawyer to be in a room with you and you are compelled to answer all their questions and they do not need to tell you why they stopped you.
Then, if you are lucky they return your devices 7 days later after they have been through everything.
This guy went through it last year and talks about what happens when they stop you: https://youtu.be/991kRp8KUmo?si=-5S1uLE7K9KG_gNj