If a fridge is your only concern, they make UPSes specifically for fridges.
https://duckduckgo.com/?q=Uninterruptible+power+supply+refri...