Expand/collapse master section based on boolean value in Collection

I have a master section that will be used as an “alert bar” at the top of the page(s). I’d like to be able to collapse it or expand it from the boolean value in a Collection so I can control it from an “admin page” and not have to go into the Editor to expand or collapse it. Does that make sense?