iPhone XS Max Screen Flashing when dimming or turning on

My son’s XS Max flashes when he dims his screen or turns it on. Any ideas what might be causing this or how to fix it? He’s already tried a hard reset. Any ideas would be great.

Have you had it checked out by Apple (genius bar appointment?)