As you haven't mentioned What have you tried thus far in regards to troubleshooting @MuhammadT
May I suggest …
The 1st action I'd suggest is to remove any relevant sd card as these can cause issues if they are glitching.
Then if it continues please put the phone in Safe Mode which disables your downloaded app's but let's your stock app's keep working. If the issues stop then this highlights a downloaded app as the possible issue. Come out of Safe Mode and start deleting your most recent downloaded app's one at a time until it stops.
And or Clear your phone's System Cache Files by turning your phone Off and then from a set series of button presses go into the phone's System Files and clear the cache. No information is lost this way.
Finally as a very last resort back up, remove any relevant sd card and factory reset.
Current Phone ~
Samsung Note 20 Ultra 5G SM-N9860_256Gb SnapDragon 865+
Samsung One Ui 3.0/ Android 11.