The problem here is that title of the collapsible is not assigned with the new class. This is required for the responsive styles to function properly. Implementation is correct, but the original requirement was to alter class of the clickable title. I think this should be improved in a way that new classes could be assigned to both title and content of the collapsible.