"Scalding one minute, lukewarm the next" is a top-three fault report. The tank is usually fine — work through this order.
Cause 1: Scaled Thermostat Probe
Scale insulates the probe so it reacts late, producing wave-like temperature swings every few minutes. Power off, unscrew the probe, soak it in white vinegar for 30 minutes (never scrape), refit and watch one heating cycle. See the descaling calculator for intervals.
Cause 2: Mixing Valve Crossover
Cold water pushes back through a worn mixing valve, so the kitchen temperature jumps whenever another tap opens. Replace the cartridge, add a check valve, or fit a thermostatic mixing valve.
Neither?
Steady but low temperature points to thermostat drift or a dead element — follow the thermostat replacement and element testing guides; models with displays: check the error code table first.