No, the mass does not change instead the volume i.e., the space occupied by the substance after undergoing change of its state. For example, when we take 1 kg of water, and ten freeze it measure its weight , we find that the weight remains constant but the amount of space occupied by the ice has been changed.
4 3 4
The guy above has answered much but he did not mention that all matter follow the Law of Conservation of Mass
3 4 3