This works to detect landscape on a mobile phone on Android:
@media (first_media_query) or ((orientation: landscape) and (pointer: coarse))
first_media_query = any media query
However, it doesn't work for ios (tested on iPhone and iPad).
How do I fix the code above? (it must work on both android and iOS)
If possible, I prefer to avoid min/max- device-width and use device features detection instead.
(orientation: landscape)
combined with aspect-ratio
or -wekbit-pixel-ratio
seems a good candidate, however I am looking for a solution that relies on device features