Welcome to Microsoft Q&A!
Try to use WKWebView.LoadFileUrl instead of LoadHtmlString()
to access local html file.
Refer to https://stackoverflow.com/a/28676439/8187800.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our [documentation][2] to enable e-mail notifications if you want to receive the related email notification for this thread.