CSS Media queries are a way to target browser by certain characteristics, features, and user preferences, then apply styles or run other code based on those ...
A MediaQueryList object stores information on a media query applied to a document, with support for both immediate and event-driven matching ... Media property · Change event · MediaQueryList: addListener
The DOM provides features that can test the results of a media query programmatically, via the MediaQueryList interface and its methods and properties. Creating a media query list · Receiving query notifications · Browser compatibility