Get width of the first render plot

How do I get the width of my plot when it renders for the first time ? I’m changing the width using some buttons after I plot. I want to add one more button where the width is set to the first render width value where it fully occupies the screen. How should I do this ? Is there any way I can set the width in % ?