Mass is the amount of matter present in the object or body, while weight is the force of gravity acting on the body.
Weight of the body depends on the local acceleration due to gravity where it is placed.
Therefore, the weight changes as per the change in acceleration due to gravity, but the mass of a body does not change by change of place of a body. It always remains constant.