Mechanical Control of Magnetic Order: From Phase Transition to Skyrmions