Usually the camera's own IR light bounces back into the lens: dust or fingerprints on the dome, a spider web, a dome rubber ring not sealing, or reflection from a nearby wall / ceiling.
๐ง Applies to: Both dome and bullet cameras. The rubber ring point applies to dome cameras. Steps from Axis and Hikvision documents.
At night the camera turns on its IR light. If that light hits something inside or outside the dome and comes back into the lens, a white haze covers the picture. IR is off by day, so the day picture looks fine.
Clear night picture without white haze.
If still hazy after cleaning, check focus, then brand support.
What went wrong?
Still stuck? Ask the community.
This answer is for learning and field guidance. Menus and limits differ by brand / model: check the device's official manual before final work.