Troubleshoot background flicker on page change when using dark mode

When the server app is set to dark mode the screen flickers when changing pages.