How to make an h bridge using only comparators
Ideally comparators CAN switch output polarity.

Most real world ones can too.

If yours can't you may be using open collector / open drain ones like an LM393 or its cousin.

As usual, you need to supply a circuit diagram and par number to have best chance of people understanding what you are really doing.