This inverter uses two power sources and two relays to work. One PWM signal is turned on and off. Two diodes isolate the currents. The circuits power the same load, but cannot share the same ground.
One circuit: https://everycircuit.com/circuit/4925669221597184
Mosfet version: https://everycircuit.com/circuit/4904104459239424