As window.matchMedia() is unavailable on the server, it returns a default matches during the first mount.
window.matchMedia()