Emergency steps
Shower Water Suddenly Scalding or Freezing: What It Means

Sudden temperature swings in a shower usually point to a failing pressure-balancing or thermostatic mixing valve that can no longer regulate hot and cold water properly, especially if the swing happens when another fixture in the home is used at the same time - treat repeated scalding swings as a safety issue, not just an inconvenience, particularly in homes with children or elderly occupants.