Display pdf generated using mpdf inline in mobile browsers

Is there any way to display pdf generated using mpdf inline in mobile browsers?

I went through mpdf documentation and tried destination option mpdf->output(‘filename.pdf’,’I’). It works pretty well across every browser in desktop except IE and doesn’t work in mobile-browsers like Firefox, Chrome etc. It starts downloading automatically instead of displaying inline in IE in desktop and all mobile browsers.

Anyways to handle this?