Sensor chart wrongly displayed on mobile

I have a sensor collecting battery percentage from my phone. When I display the chart on my mobile phone, an error occur.

It normally looks like this:
https://community-assets.home-assistant.io/original/2X/e/eb553439313f9efc22e21ce44119ca504ceb9b54.png

But when I display on my phone it looks like this (the red square is something I added onto the screenshot):

And I have to scroll in the little window marked by the red box. This means that I can only see a small part of the chart.

I am pretty sure it isn’t because my phone screen is to small because it works in the demo and my phone has a 5.5 inch 1080p display
If I try to load the demo on the same phone it looks like this:
https://community-assets.home-assistant.io/original/2X/b/b8ef5318fa6daedac0af2c19a4d02e6714c15029.png

What can I do to get rid of this problem?

I have this same issue on all pop-ups on mobile in portrait orientation. The windows always go to the bottom of the screen and are never large enough to show the graph properly without scrolling.