hello bro, couple more users reported similar issue. if its iOS problem then performing iOS restore will help us fix the issue. else it could be hardware related issue. temporarily restart and use the device once. if problem repeatedly happening then we need to do iOS Restore and check bro. after taking full backup of your device.
as we tried basic troubleshooting steps, its recommended to do iOS Restore once after taking full backup of the device. then restoring the backup could help if its software specific issue.
When we visit apple service center, they will do the same steps to see if the issue happening again or not bro.
If you have a computer you can take the full iPhone data backup locally in computer using iTunes or Apple Devices app. or visit apple service center to let them do it for you.
When the device is in warranty they do it for free, for out of warranty devices they charge 1500 to 2000 approximately.
Or you can do this process with any third party service center in your city trusted shops too. at less cost. Data backup is the most important thing here.