Not sure what type of field you’re talking about or if you want to hide the entire layout.
If this is a select type field then you can dynamically load the choices in the select field https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/. This also works with radio and checkbox fields.