How to achieve Responsive and Scroll Zoom

Hi ,
Any help how to achieve responsiveness and Scroll zoom for plotly graphs.
As of now its responsive but when I scroll zoom its not getting minimize .

Here is codepen of my code.

Steps to replicate the issue.
Need to press ctrl+mouse scroll. And then minimize .
Then reset it again it do not get its original size.
Any help is appreciated.

Thank You