How to style Ionic Capacitor?

Hello!

I’m front-end developer on ReactJS and I’m using Ionic template. And I want to create a popup, and for that I’m using IonModal, but when I’m trying to style it, it doesn’t fit the content.
I expect that height of my modal will change dynamically when information is being added.

P.S in my code I add height 100vh, but it doesn’t change when I change the value of height in my code