bottle warmer?

has anyone heated up a formula bottle with a bottle warmer? is it safe enough to where it kills any bacteria in the water?? And if so, do you have to heat up the water first in the warmer then add the formula or can you add cold water with formula then heat it up together? (sorry if stupid question i clearly have no idea what i’m doing😅)