Hello MMN101.
Welcome to Apple Support Communities.
If I'm understanding correctly, you have some questions about two factor authentication. I will be glad to assist.
Please see the information below regarding not having a trusted device available when signing in from another device:
If you're signing in and don’t have a trusted device handy that can display verification codes, you can have a code sent to your trusted phone number via text message or an automated phone call instead. Click Didn't Get a Code on the sign in screen and choose to send a code to your trusted phone number. You can also get a code directly from Settings on a trusted device. Learn how to get a verification code.
If you use iOS 11.3 or later on your iPhone, you might not need to enter a verification code. In some cases, your trusted phone number can be automatically verified in the background on your iPhone. It’s one less thing to do, and your account is still protected with two-factor authentication."
Cheers.