Thermostats⠀⠀⠀⠀⠀⠀⠀

Perhaps they would if they were downstream from a GFCI outlet? That’s how regular outlets work in such places, as the upstream GFCI covers the rest.