You have to use the Windows Device Recovery Tool. Your phone will get a clean installation and everything stored on your phone will be erased, it may take hours, your phone will be updated more than once, you need a computer for this and you'll have to download a few GB.