Hi,
actually you can found this kind of driver already sold out over market. you can use 2 btn7971 half bridge dc motor driver. we can design isolated driver for it to prevent Arduino from feedback voltage. so your driver will be fully isolated .
if you are interested with my proposal, let's discuss it over messenger.
Best Regards,,
Rijal