Global variables being dropped on browser resize

I’m using global variables to manage user input, my issue is if I resize the browser to the next viewport, all the global variables are dropped. Is this a common issue? Is there a workaround to hard cashe the variables? We want to showcase the desktop view and mobile view and i can open in ether or but can’t grab the browser window to resize (Chrome) and showcase the other layouts.

Hi!

I’m not sure what “resize the browser to the next viewport” means. Can you elaborate, or include a file?