It is due to the refraction of light , as the steam or any other have denser medium than air ,when the light passes through it , it gets refracted due to which we see objects sightly flickering .

hope it help u
pls mark it as brainliest answer

1 5 1