Hello!
The atomic mass of an atom is determined by the sum of the mass of the protons and neutrons it contains. Electrons have a mass which is much smaller relative to the components of the nucleus, so its mass is not considered.
Since atomic mass depends on the number of neutrons, and this tends to vary with different isotopes of an atom, then different isotopes will have different masses.
In the periodic table, we can observe the relative atomic mass of the elements which is weighted according to the mass of the different isotopes and their frequency in nature.
I hope that this answers your question. Don't hesitate to ask other questions! :)