You need to download smart switch in windows and connect your phone and then there will be an option to downgrade once it detects the beta version. But all you data will be deleted so backup it before doing so. You can do it in smart switch on phone ...