The FCO says....
Self-isolation on returning to the UK from Thailand is not required if you are flying directly, though some restrictions may apply if you are transiting a third country. Check the latest guidance for England, Northern Ireland, Scotland and Wales.
Of course this might change as the number of infections in Thailand is increasing....