Setting max-height of a Figure?

I’m wondering if it’s possible to set the max height of a go.Figure()? I would like to set the max-height to be 70vh, and the height to be something ridiculous like 10,000px. Here is my manual override after generating a figure:

Is there any way that I can achieve this while in the layout of a go.Figure()?

I see that it is possible to set the minimum width and height of a plot (Setting graph size in Python), but how can I set the max height?

I’d also very much like to know if this is possible. Keeping the height of a figure to be less than the viewport height makes display of a figure much better (on e.g. a mobile oriented as landscape).

Nothing I’ve tried in CSS / style etc.has worked. I think it should be possible in Dash using the approach given by @AIMPED at Making marker size dynamic when changing browser sizes, but trying that hasn’t got to the top of my list yet, and it would be nice if there’s an easier way.

(An AG Grid can be kept smaller than the viewport height with style={“max-height”:“80vh”})