hide content or elements with unmatched conditions in editor

HI, i have created a component with a select property for choosing a layout, layout_1, layout_2, etc. I then use this within the component to output different boxes based on conditions. However, all boxes are always output in the editor, regardless of which layout is selected. Is it possible to hide the conditions that are not met in the editor, as is the case in the front end?