#ZegnatDev behind my IWC demo: you can use CSS queries @media (max-aspect-ratio: 1/1) and @media (min-aspect-ratio: 1/1) to detect portrait and landscape sized viewports respectively. This is different from device orientation, as that would not change on resize.