The difference would possibly refer to what is doing the heating.
Seeing as you usually heat something on a hotplate, it would be usual to say 'on'.
Although you possibly could use 'in' with something like an oven, we usually don't use 'in', and if anything use 'at' instead.