It could be a hardware failure.
If you have already performed a forced restart of your device:
(Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then, press and hold the Side button until you see the Apple logo.) and nothing changes, make an appointment at your most convenient Apple Store and have your iPX inspected.
Regards
Giulio