Resolution changing when hood is closed

Hello,

Since few days the screen resolution change when I close the hood (without turning off the PC).
When I open the hood, the screen is in higher resolution and it takes about 2 seconds to come back to the previous resolution.
It’s like when the pc is plugged to another screen with a different resolution and the resolution is back as soon as it’s unplugged.

Is anyone have same issue ?