Hidden block

Hello! I would like the standard block with filters to be hidden, similar to the example below. Can you please help me with writing a plugin for this or if it can be done using built-in methods?

What you need is a collapsible block, or a hidden block?

I am talking about making a block collapsible, yes