Can you please confirm the below:
Are you using any tempered or screen guard?
Can you try cleaning the phone surface and try again
What is temperature of the phone and also the free memory
Does the issue happen always or sometimes (Let me know the frequency)
Please share the software version of the phone