Hide shape and collapse height in responsive mode

Hi, I have a long shape on the left of my web page to differentiate the sections. When I hide this shape for mobile, it doesn’t allow me to collapse the height like other elements. This results in a long blank space on my mobile site.

Any solution or workaround for this?

Can you group it, then collapse the group when you want to hide it?