The battery is usually a key factor when it comes to a sudden shutdown. The key is to calibrate the battery to match the actual percentage remaining and the percentage recorded by Android. The steps to follow are very easy.
- Use your mobile until it turns off completely and try to turn it on again,
- If the phone doesn't turn on, let it sit for a few hours (around four or five).
- Charge the phone battery with the mobile off to 100% without using it.
- Turn on the mobile and use it normally.
In case the problem persists, we will have to reset the system to rule out that it is a failure related to the hardware.