Did this happen after a recent software update or out of the blue?
What software version is your S20 on? (Settings > About Phone > Software Information > Build Number [last 4 characters])
Sounds like a hardware issue with the screen but if you suspect a software issue try submitting an error report through the Samsung Members app!
Maybe a faulty screen. Check your warranty or take it to a Samsung authorized repair shop like ubreakifix.