I have a 27kw Natural Gas generator with an ATS as my primary backup power. If that fails, I would use a portable generator via interlock
So, if in the cold the power went out, I could turn on the block heater.
I also have an Ecoflow River 2 Pro, an Ecoflow Delta 2, an Ecoflow Delta 2 Max which stay fully charged, all of which could easily power a block heater
But, odds are my portable generators would get used by a neighbor or friend without power, in which case they would be pre-heated by me first
Even without all of that, you could monitor new and weather to determine there is a higher chance of power failure, and just keep it heated