Hello MdFazleRabbi,
Thank you for using Apple Support Communities!
We understand from your post that your iPhone XR is freezing and not allowing you to scroll. Locking the iPhone and then unlocking temporarily resolves the issue. In a situation like this we recommend backing up your iPhone and reinstalling the software. The following article has the steps on how to backup your iPhone:
How to back up your iPhone, iPad, and iPod touch - Apple Support
By using the steps as listed under the heading "Put your device in recovery mode and set it up again" from the following article you can reinstall the software on your iPhone:
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
Best Regards.