Can't login to Apple ID on iPhone 4
I'm trying to log in to Apple ID from an old iPhone 4 but it says to enter the passcode sent to another device. I received the code on my iPhone 12 but it doesn't have any place to enter the code on iPhone 4, so I can't complete the login process.
Earlier iPhone models