You leave the screen opens that ask for the code, then you use a second window or a second tab to go to your email to get the code. If you close that first screen, that resets everything, and the code will be seen as expired or invalid.
Of you can use Online TurboTax on a computer and check your email using your phone.