How to set width of `st.dialog` as a fraction of the page's width

For example, st.dialog("title", width_ratio=0.8). I tried wrapping with custom css using a stylized container, but the identifier is not fixed so I couldn’t easily change the width arbitrarily.