Automatically fill in SMS passcodes on iPhone
When sign in to some apps and websites, a one-time SMS passcode is sent to iPhone. It's required to enter the code into the app or website. iPhone can detect the passcode in Messages and display it above the keyboard.
When tap that OTP which is appear above the keyboard, it's not filled that input area.
iPhone 11, iOS 14