You can modify the set of entities displayed in a CustomBlock reference using visibility elements and visibility states.
This section discusses: