Simplest would be this:
Simpler Failover for two Gateways I found working
BUT it implies in your case having a double NAT (which - depending on a number of factors, like speed of the devices involved, speed of the ISP's connections, need for low latency, etc. may - or may not - be an issue).
Without more details on devices involved, topology, how LAN(s) are configured, It Is difficult to say if there can be alternatives.