I’ve switched to using all html dialogs.
It’s really not that bad. I copy and paste a bit of boiler plate, but for basic stuff it’s not that bad.
Even for simple stuff I use html dialogs.
I’ve dabbled with other methods but they all ended up being hacks that don’t work dependably on both platforms.