I will send you a custom Bloc I made recently for someone, it ill give you an idea on how it works. (this bloc will be overkill for what you are doing, but the principle is the same)
Did you hide the row with the side bar visibility options or add the class “collapse”. Don’t use the visibility options on the side bar, as they use an attribute with a reserved name, we can’t use it. So have to use the standard Bootstrap method.
The only down side using the collapse class, is it hides it in Blocs when designing. You can add a small bit of code in the page header to add the collapse class when the page loads in the browser to make it easier to design.