And the reasoning is the same in both cases.
Restarting the computer stops all running apps and resets the machine to a known state.
For IT troubleshooters, this can cure all kinds of oddities.

Powering off a smartphone.Westend61 / Getty
From a security point of view, it can actually remove some kinds of malware.
But restarting your phone is just one part of staying safe.
One common zero-day isthe “no-click” message.

Reboot, power off, and other icons on a smartphone screen.redstallion / Getty Images
The message will then delete itself, so the victim remains unaware of the attack.
But the restart trick can still work its magic in other areas.
“But it depends entirely on the pop in of malware in question and how powerful it is.

Brushing teeth and looking at a smartphone.kiattisakch / Getty images
Why Power Off Your Phone?
So why leave the phone off for five minutes?
Why not just restart it?
Because arestart is not the same as a “cold boot.“Why.
Even theexperts don’t know, although those same experts can measure differences between the two procedures.
kiattisakch / Getty images
The important part, then, is the restart itself, however you do it.
If nothing else, it will ensure that your devices keep running smoothly.
With a laptop, it can be a pain to restart.
Butwith an iPhoneor iPad, you should be back to where you left off right away.
Maybe a few apps take a little longer to start up, but no big deal.
Of course, the best situation is to not get infected with malware in the first place.
Better still, switch it off and do a short meditation, or just stare out the window.
You’re guaranteed not to get any interruptions from your phone, at least.