Index.html is not rendering in ios devices instead shown source code why?

I have a package which contains index.html
And i am launching index.html using inappbrowser portnumber 9000.
But it shows source code instead rendering… Anyone pls help to render

  let websiteDir = `${this.file.dataDirectory}${'demo/'}${packageName}/`;
 this.httpd.startServer({
        www_root: websiteDir.substring(7),
        port: 8200,
        localhost_only: true,
      })

this.inappBrowser = this.iab.create(url, “_blank”, inAppBrowserOptionsList);