Most major operating systems have supported Dvorak for well over a decade (I started using it almost 2 decades ago and have never used an operating system that didn't have support baked in).
It does take a minute or two to initially set it up. Here's an old listing of ways to do it on a wide range of operating systems - https://kb.iu.edu/d/aepk And I would recommend setting up a keyboard shortcut to switch between them.
Once you have it set-up, including a keyboard shortcut, switching your keyboard is just a shortcut away.
I only type in Dvorak, so I can't speak to the ease of a single typist switching back and forth. I have pair programmed quite a bit with Qwerty typists and other than occasionally switching keyboards and momentarily forgetting to switch it, it has never been a problem.