Screen displaying weird pattern

I was remoting into a PC from a Mac when the screen showed weird patterns, and I couldn’t clear it at all by rebooting my computers or using a different computer to connect. Teamviewer for phone and iPad display the same result as well, but when I got home, the PC that I was remoting into is fine, and there’s nothing like that on the screen. Anybody has any idea what’s going on? I tried to change resolution as well but nothing was able to remove it.

484CB0EF-50AC-441B-9C87-31B4109A01B8.jpeg