May have found my answer, this is on the gov.UK website:
Landside transit
Landside transit is when you pass through UK border control on arrival, but you leave the UK shortly after (usually within 24 hours). You may leave from the same airport, railway station or port where you arrived, or from a different one, so long as you travel directly to that port of departure.
You need to take a COVID-19 test before you travel to England.
You must complete a passenger locator form before you travel to England.
You need to do the following when you complete your passenger locator form.
select ‘Stay in the UK’ under the Your travel plans section
reply ‘I will be traveling for an exempt reason’ to the question about whether you are required to self-isolate on arrival
select the Exemption options, and then select ‘Transit Exemption’
This includes if you are transiting onto the Channel Islands or the Isle of Man. You may need to show evidence of onward travel and where you will be staying at the border.
When you are in England you do not need to quarantine or take any COVID-19 travel tests.
You must either:
remain within your port of entry until your departure from England
travel directly from your port of entry to another port of departure in England