Popup not showing on phones

Hi everyone. I have the same problem described below.

I’m using Ionic 4.1.0 and Leafletjs for showing maps.

Code for my popup:

        if (err) { console.log(err); return; } // do nothing if there's an error
        // Otherwise show the content in a popup, or something.
        if (content)
          Leaflet.popup({ maxWidth: 800})

Here is an image of how it should work: