This is very strange. If you are encountering this type of behaviour, maybe you are using 'vh' as unit for body height? Because in that case you should use dvh instead, since in mobile devices, vh does not take into account the device's digital buttons.