It is pretty normal to use a block wave to produce 230v AC from lead acid batteries or the like.
Often a 24 to 230V transformer with mid branch is used. The mid is connected to 12V. Both ends are connected (alternating out of phase) to ground via mosfets.
The transformer will remove some of the block shape (it is an inductor). A capacitor can remove more. Most 230V AC applications do not really care about the fact that it is not an exact sine wave...
https://images.app.goo.gl/2CQUcgMdFugR4Pf88