For a person sitting near a fire, why do the objects like trees and houses on the other side of the fire appear shifting?
∝
The refractive index is inversely proportional to wavelength.
The hot air around the fire rises up and cold air fills the space of hot air which creates a continuous and varying refractive index. So the light coming from objects behind fire pass through the region which refracts continuously. That's why objects on the other side appear like shifting.
Hence, the objects like trees and houses on the other side of the fire appear to shift because of continuous and varying refractive index.