macOS Mojave (Developer Beta) - Safari User Agent change not persistent
If things stop working (or don't work as expected) after an upgrade to a beta version of Mojave the most likely cause is a bug in macOS (that's why it's called Beta after all). Best course of action is to report it to Apple using the usual feedback channels for beta releases, ideally in a way which makes it easy for Apple to reproduce the issue.