Auto hide elements on Edit and Preview Mode based on File config

I am using templates for daily notes. Some of the data is read only -> e.g some queries which I need to see only in Preview mode. I would like to have possibility to config what is folded and what is not in Edit/Preview modes for each file.

My proposition is to add front matter config data:

When I will open a file in Edit mode based on configuration it will open like this:


When I open this file in Preview mode it will looks like: