Iframes in npm package

Hello guys, I am making a module and then packaging it with npm so I can easily add it to any App or web I want. The problem is that I am adding an iframe for when a video is sent in the chat but it’s not showing, the iframe is there, but shows nothing.

The thing is that if I copy-paste the code of the package into my Ionic App directly it does work perfectly with the DOM SANITIZER (I am doing this also in the package, using the sanitizer).

This only happens on devices. If I use ionic serve, it works perfectly.

Why is this? Because of security reasons I can’t show an iframe’s content from a package?