How to disable radio buttons in a radio button group?

I want to disable a group of radio buttons in case a condition is met. I’m only able to select (and apply CSS to) the group but not each radio button itself. Adding the attribute “disabled” to the radio button group does not work. Does anyone have an idea?