useMediaQuery SSR fallback behavior remains undecided in MUI
The useMediaQuery hook reads breakpoints from the theme and relies on window.matchMedia , which is absent during server‑side rendering. Without a custom ssrMatchMedia function supplied via the theme, the hook defaults to false , often causing hydration mismatches in frameworks like Next.js. The MUI team has discussed adding a built‑in ssrMatchMedia implement