We have introduced a new visible_if
Liquid setting property that allows you to control the visibility of settings in the Theme Editor. This attribute enables you to hide theme settings that are not currently relevant, while still preserving their data. It applies to all basic and sidebar settings, as well as most specialized input settings, enhancing the customization experience.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/conditional-settings-in-the-theme-editor