WKWebView scrollView Resetting Zoom Scale

I am trying to set and maintain the zoomScale value on the scrollView associated with a WKWebView. I can set the value without issue. I have noticed, however, that when the size of the webpage changes (due to a change in content), the zoomScale gets reset back to 1. Also, this reset behavior does not occur if the zoomScale is set via a pinch gesture by the user.

Is there something I can do to maintain the programmatically set zoomScale when the size of the web page changes?