Put device into recovery mode to restore (fresh install) or update (retain data). iOS 13.1 will be coming out tomorrow so it might be better to wait until then. Just remove the profile and update as normal tomorrow.
Or Catalina for Mac in that matter.
[automerge]1569287675[/automerge]
You don’t need to restore to factory settings to get rid of profile, unless you want to get rid of beta software as well.