I am using MUI for one of my projects and I have started to face these issues. On the initial load of my app on production, the mui styles doesn't seems to get applied. For examples:
- Switch component is not shown properly
- Button component loads with no padding/margin even though i have used
sxprops. Though they work when i usestyleinstead ofsx. - Context menu also loads with improper styling.
All the styles get fixed when I refresh the page.

How can I resolve this?