How do I dynamically change page height?

I am trying to create mobile pages. Let’s say I want a page to be longer if the page has more text, and shorter if it has less text, how would I achieve that? Thanks!

Normally, bubble auto adjust it. Text element have options for it