orientationchange
Orientationchange refers to the event that occurs when a device switches between portrait and landscape orientations. Historically, it described the window.orientationchange event on mobile browsers, and the corresponding window.orientation property often exposed a numeric angle such as 0, 90, -90, or 180 degrees.
In modern Web platforms, the Screen Orientation API provides a standardized way to query and react to
Legacy support remains in some environments, where the orientationchange event may fire on window and window.orientation
Usage considerations: For layout adaptation, CSS media queries using orientation: portrait or landscape are a common
Cross-browser considerations: Support for orientation events and the Screen Orientation API varies by platform and browser