Facing issue with iPhone XS Max

I am experiencing a weird thing on iPhone XS Max, I see cancel button on page however script doesn’t find the button. It works fine on 8 plus.
Even I am not able to find the xpath for that cancel button on xs max . I used 8 plus to find the xpath too. Does anyone experienced the same issue before and if so then how to resolve this?

Please mention minimal details before you post something.

Appium verison ? iOS Version ? Xcode Verison ?

Not able to find xpath in iPhone XS max ? Aren’t you seeing that button element in UI inspector ?