The temperature of air beyond and above a holy fire changes all the time. Hence, the density of air also changes constantly. Hence, the direction of propagation of the rays of light approaching us from the objects beyond and above the holy fire changes constantly. Therefore, those objects appear to be shaking.