Be cautious before using the mediaQueryList API

https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList