### Steps to reproduce I couldn't reproduce on codesandbox so I'll attach the repo here https://github.com/mtr1990/test-css-vars ### Current behavior ```tsx <AppRouterCacheProvider options={{ key: 'css', prepend: true, // enableCssLayer: true, }} > <CssBaseline /> <CssVarsProvider theme={theme}>{children}</CssVarsProvider> </AppRouterCacheProvider> ``` When enableCssLayer is `false` some components are broken like: <img width="1280" alt="2" src="https://github.com/mui/material-ui/assets/13531993/21e1e516-1def-4f39-a341-db9a39d8e67e"> But styles are overridable When enableCssLayer is `true` works fine. But the style cannot be overridden <img width="1279" alt="1" src="https://github.com/mui/material-ui/assets/13531993/b40ab73b-9cc5-41d0-9619-8843dbe3dfcf"> ### Expected behavior Ability to override type when `enableCssLayer` = `true` **Present** <img width="286" alt="image" src="https://github.com/mui/material-ui/assets/13531993/dda16608-f6c5-4a35-a045-b56f44a368cd"> **Expect:** <img width="267" alt="image" src="https://github.com/mui/material-ui/assets/13531993/2c32abf0-b93b-4399-ac1e-7fa12ce977f0"> ### Context _No response_ ### Your environment _No response_ **Search keywords**: enableCssLayer