Somatic mutations occur in the cells of the body other than sex cells and have no effect on the offsprings, while germ-line mutations affect the sperm or ova and are passed onto the offsprings. The video below explores somatic and germ-line mutations and their effect on the organisms.
Genetic variations can be caused by mutations during meiosis.
https://youtu.be/ISO_E-37Mog