pdf on iPad in HTMLviewer

My app shows a pdf in an HTMLviewer using mimeType “application/pdf”. Works fine on windows and os X. Used to work on iPad.

The app used to put a proper pdf viewer in the HTMLviewer using HTMLviewer.url. Now it shows part of the first page with no scroll bar and no pdf tools.