Centering plotly graphs while writing it as an HTML file

Hi All,
I am saving a Plotly Radar graph as an HTML file using the write_html() function. But when I inspected the graph, I found it is always left-aligned. Then I used the developer tools to figure out that there is a specific HTML div with, class = “plotly-graph-div js-plotly-plot” where I need to set ‘margin = auto’ to get the graph centered.

I cannot figure out how to control this through the Python code. I tried using the ‘margin’ parameter in go.layout() and also used update_xaxes(automargin = True). But none of them seems to work.

I am new to this, any help will be much appreciated.

Plotly version — 5.1.0
Python version — 3.6.9