What happens to the mass of a substance as the temperature is increased?

The temperature of a substance has no effect on its mass.

UNLESS ... part of it evaporates and blows away, or melts in a puddle and runs off the edge of the table.

As long as all of the substance stays there, its mass doesn't change, no matter how hot or cold it gets.