I assume it's not had an accidental bump or water damage.
You could try a factory reset after backing up and removing any relevant sd card @Gazzairee
A Samsung Experience Store or Samsung Service Centre can take a look but there maybe a charge as the manufacturers warranty is for 2 years.
I agree with the others that the phone's battery may need attention.
Current Phone ~
Samsung Note 20 Ultra 5G SM-N9860_256Gb SnapDragon 865+
Samsung One Ui 3.1/ Android 11.