There is a standard layout example, it works and when you press the button, it collapses or expands the div c id="demo"
<button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo"> simple collapsible </button> <div id="demo" class="collapse in"> … </div> Is it possible to automatically minimize the element with id="demo" for the mobile version using standard Bootstrap tools?
.hidden-xscan help? if it does not block the toggle. - Artem Gorlachev