CSS collapsing after backend Python changes in ERPNext

Hi,
Every time I make changes to the backend Python code in my ERPNext app, the CSS in the frontend collapses — the layout breaks, and styles disappear or don’t load correctly. This happens consistently, even without touching any frontend or print format code.
I’ve tried clearing the browser cache and running bench clear-cache, but the issue still appears temporarily after each code change. Has anyone else experienced this? Is there a proper way to avoid CSS breaking after backend updates?

Are you running your instance in docker?