Answer:
Mirages happen when the ground is very hot and the air is cool.
Step-by-step explanation:
They happen when light passes through two layers of air with different temperatures. The desert sun heats the sand, which in turn heats the air just above it. The hot air bends light rays and reflects the sky.
When you see it from a distance, the different air masses colliding with each other act as a mirror.