Beta_expander style change

Hi there!
I have a question regarding the beta_expanders.
Recently I’ve upgraded to the newest Streamlit version, the previous version I was working on didn’t have forms implemented yet. After the upgrade, all my existing beta_expanders changed style. I’ll provide some examples below. I was wondering if this is intentional and if there is any way to change back to the old style. My preference for the older style is that now my plotly graphs clip with the newer style. Thanks in advance!

Old style:

New style:

New style with clipping: