You can set the fields of a category to read-only mode from the category automations.
Field automations offer the options “Set fields to read-only” and “Allow writing on fields”.
The option “Set fields to read-only” will make all the fields within the category become read-only, while the option “Allow reading on fields” will do the opposite, allow writing on all the fields of the category.
For example, the rule defined in the image will make it so that when the field “Text 1” has the value “Automation”, all the fields of the category are set to read-only, while if it has any other value, writing will be allowed in all the fields of the category.
Related articles
How to create category-level automations?
Apply display rules on the fields of a document