How to make the height of the page adjust automatically according to the length of the content

Has anyone found some solution for adjusting page height?
Maybe using a code?

Thanks.

1 Like