This inverter uses two power sources and two mosfets to work. The two PWM signals must not be turned on at the same time. Two diodes isolate the currents. The circuits power the same load, but cannot share the same ground.
One circuit: https://everycircuit.com/circuit/6024991434604544
Relay version: https://everycircuit.com/circuit/4590956783075328