In principle, yes it is possible to make a GRIN lens by heating a fluid.
Is it feasible in practice though? Well that depends on the magnitude of refractive index change you can get at a reasonable temperature (i.e. the dn/dT of the fluid). You would also need to manage the convection that inevitably arises when inducing a thermal gradient in a fluid.
In response to your previous post (post #5), the limitation on viewing mirages is not distance per se, it is viewing angle (which could be phrased as a distance limit for some given viewing height).
Claude.