Fitting HTML element position fixed in mobile page

If you work with EditorX (recommended) , you can set the size via the editor using vh (percentage of viewport height ) and vw (viewport width units). If you work with the classic editor which is not really responsive, you only can do it if you create the iframe in a custom element with html and css (and only if you have a premium account).