Cordova - blank page with white background when swiping to go back

I’m using window.WkWebView.allowsBackForwardNavigationGestures(true); to enable swipe to go back.

The problem is as you swipe there is a blank, white page. Here’s what it looks like:

This is particularly jarring when dark mode is enable. It doesn’t look like the white background is part of the DOM, so I can’t change its color.

Ideally, I’d like for it to show the content for the previous page as you’d see in a native experience. Has anyone seen this before? Any tips?