I use MyHeritage & Ancestry on several devices. This works for me, as follows, I set up a RULE in my email program to forward messages that contain verification codes from Ancestry (subject contains verification code) & MyHeritage (subject contains Two-Factor Authentication) to the device I use most.
It takes a few extra seconds for the message to arrive but it saves going upstairs or back home. The only downside is that I have to delete the message on 2 devices.
I tried disabling 2-factor, but it required me to re-enable it to look at DNA matches.
Zaph