You can download the app from the Windows Store on your smartphone, and then download and install Windows 10 Mobile if your device supports it.
To check if your Windows device is compatible with the new Windows 10 Mobile, you’ll have to download the Windows 10 Advisor app. Microsoft has started to roll out the Windows 10 Mobile OTA update to supported devices running Windows Phone 8.1.