Three basic troubleshooting steps to perform (test after each attempt):
A) Try a "forced" restart of your device using these instructions: Put it on charge for at least half an hour, then, keeping it plugged in, use these gestures:
In rapid sequence, press and quickly release the volume up button, press and quickly release the volume down button, then press and hold the side (power) button. Only when the Apple logo appears (it might take 10-20 seconds), release that button (ignore all other screens that might appear, the one with the "slider" to turn the device off included).
B) If you can, check your battery status in Settings>Battery>Battery Health & Charging>Maximum capacity. If it is close to 83-80%, have it replaced as soon as possible, since it might have unpredictable behavior.
C) If the issue persists, something could have gone wrong during the latest update procedure.
I would try to install a fresh copy of iOS/iPadOS (the latest available/supported by your device model). To do this, create a full backup of your iPhone/iPad (1), then restore it to factory settings (you need a computer to perform this step) and, in the end, set it up as new (2).
When done, restore data from your previously made backup (3).
Follow the instructions provided in these support articles:
(1) How to back up your iPhone, iPad, and iPod touch – Apple Support
(2) Restore your iPhone, iPad, or iPod to factory settings – Apple Support
(3) Restore your iPhone, iPad, or iPod touch from a backup
If the issue still persists, I suggest that you contact Apple Support directly, using this link:--> Contact Apple for support and service
Regards
Giulio