Is there a way to show OTP messages on screen without opening OTP messages? I am having problem switching between apps when using banking apps or online transaction on android phone when they sends OTP and I need to enter the OTP code.

Sometimes when I switch to inbox to read and remember the OTP code, When I move back to the browser page to enter the OTP, the page gets reloaded and either it sends OTP again or triggers invalid page as the page gets reloaded.

I need some way to show the OTP code on screen as soon as the message arrives in inbox so I can see and enter the code without switching between apps. Can someone help please?
Try Multi Clipboard and OTP Viewer. While this does Multi Copy or is a Clipboard manager, This also reads One time Passwords and show on a floating widget that actually resolves your issue.
Since you want to use OTP codes without switching to inbox, this app shows the OTP message in a floating widget and the code floats on screen as soon message arrives in your inbox.

Note: I'm affiliated with the company CV Infotech which has developed this app.