A warning before the switch.
A sudden jump from play to bath or screen to dinner is what triggers most meltdowns. A short heads-up gives a child time to mentally close one activity before starting the next. A five-minute warning, a two-minute warning, then the move turns an abrupt demand into a countdown they can prepare for.