I know this is a simple answer but I have experienced this when I would go to sleep. But what I realized is the amount of humidity in the room.
I setup a humidifier and I was surprised how much water was in the bucket. And the humidifier continued to collect water for a few hours.
The fog disappeared, so I set the humidifier to collect the water when the humidity built up.