OTP number verification - Android Mobile

Hello Team,
Could anyone help me on this! I am trying to automate a login screen in a mobile app(Android). If it is a normal login using username and password then I could set the text manually. But the app will display OTP every time I login the application. Are there anyways to capture this OTP everytime it displays during login?

Thanks in advance.

@Chris_Trevarthen Could you please help with this?

N.Aishwarya Janani