I have seen similar effects on a visit to Shark Bay in Australia. The effects can be very impressive. They are indeed mirages, though some of the effects suggest more complicated mirages than most.
The main effects of mirages are the result of a low-lying layer of hot air. Any light entering such layers from the side tend to get bent upwards because the hot air and in particular any water vapour it contains, are less dense than the surrounding air and layers of air above it.
When a ray of light travels through any transparent material where the density differs in neighbouring layers, it bends towards the layers of higher density. If you want some diagrams showing the paths taken by light in a mirage, try doing an Internet search on the word "mirage", but you may be able to clarify the effect in your own mind by drawing a picture of a tower at one end of horizontal layers, and the paths of rays of light passing through those layers and bending upwards as they go.
If you draw it correctly you will see that the effect is rather like standing at one end of a horizontal mirror, or possibly a lakeside, and seeing objects on the other side both directly and inverted.
The picture is somewhat complicated by the fact that the layer of warm air is not a sharply defined surface like a mirror, but is fuzzy, which is why objects and their reflections are separated by a comparatively thick layer of distortion.
Under more complicated circumstances there might be multiple layers of air with warm air between layers of cooler air. That obviously complicates matters, with the light being bent in both directions and avoiding the warm air layer.