I am currently developing a mobile web application and have implemented a media query to specifically target phones with a screen height lower than that of the iPhone X+ (812px):
@media (max-height: 811px) {
}
While this media query works flawlessly on iOS devices, I encountered an issue when testing the app on a Huawei P30 Pro. Despite the Huawei device having a larger screen size than the iPhone X, it still triggered the media query, displaying a viewport height of only 755px.
How is it possible for the Huawei phone, with a larger screen, to have a smaller viewport height?
What steps can I take to effectively target only phones with physically smaller screens than the iPhone X?