Is their any way when Otp via text come in mobile and it auto varifies?

I want to ask that is there any way in which I can auto varify the Otp which come to my phone.
eg:- When Otp come I dont have to copy it and paste to text box I just want it will auto recognise.

Maybe if your otp was automatically stored into Firebase. But that’s not how they work, right? I don’t believe auto capturing and posting text from a text is possible.

So is there not any way in which auto verify of Otp can be done?