Not able to read data from modal/popup

I’m automating an app with a modal element/popup. It is a mobile banking application. When I am making a payment,i’m selecting for accounts so it’s opening a modal showing the accounts. Inspecting it it Appium desktop, it’s not locating the modal elements, instead, it is still locating the elements of the previous page.

Appium seems not able to read any data from it.

Appium version (or git revision) that exhibits the issue: 1.12.1
Last Appium version that did not exhibit the issue (if applicable):NA
Desktop OS/version used to run Appium: Windows 10
Mobile platform/version under test: Android 9.0
Real device or emulator/simulator: Real device Samsung S8 and Pixel XL API 28 android emulator
Appium CLI or Appium.app|exe: Appium Desktop

I’m using IntelliJ as my IDE and Java.

Anyone who has the workaround on this?

Thanks in advance!