Plot X

The X-Men must foil Magneto’s plan to bring about mutant dominance. A device is created which¬†kills or changes either humans or mutants. Later it is discovered that the device has an unexpected effect.

Which of the first three X-Men movies fit this plot summary?