Question Display Port loses connection when launching a game

Oct 4, 2020
1
0
10
Monitor TUF VG27AQL1A
Motherboard TUF X570-PLUS(WIFI)
GPU TYF 3080 OC edition
I have the display port connected to the gpu it works when just on casually using it but when I open a game like cod Minecraft or Red Dead Redemption 2 it says it loses connection. I can get it to show something after turning off then on my monitor but would like to fix this.