I have noticed this several times. When I am boiling water, a few seconds before its boiling point, vapours are formed as usual. But if I turn the gas off before boiling, the moment it turns off, I see a lot of vapours being formed all of a sudden from the hot water for a second or two. Can anyone tell me why this happens?
What you are seeing is not actually vapor - vapor is invisible. The mist seen above boiling water, commonly but inaccurately called vapor, is actually made of tiny droplets of liquid water, formed when the vapor cools down and condenses.
While the stove is on, the constant influx of vapor from the boiling water keeps the air above it hot, so condensation is minimal and there is little visible mist. When the gas is turned off, boiling stops, the air above the water cools down, and the vapor it contains suddenly condenses, creating a large plume of mist.
Without seeing your experiment we can only speculate, but my guess is that this is due to the convection currents generated by the combustion of the gas.
When the gas is burning there is a large volume of hot carbon dioxide and water vapour generated by the combustion, and this flows upwards and around the pan. This has two effects. Firstly it keeps the temperatures high around and above the pan, so it hinders condensation of the water vapour. Secondly the flow rapidly carries away and condensed water droplets that do form. As soon as you turn off the gas these two effects cease so there is more rapid formation of condensed water droplets.
You might be interested in reading Amount of Steam Generated using Gas burner and Induction cooker as I think this is related to your question.
Hotter steam has a diffraction index closer to air than steam which is cooler. As the steam cools the droplets get larger, increasing the diffraction making it appear like there is more, when in fact there is less.
Put another way, hot steam scatters light less than cool steam.