ah any possibility of putting some condition to display only the attributes according to the navigation of the category? post appears all attributes even if the category does not have the attribute.
Sorry, but I quite do not understand. Can you attach a link to your website and explain in more detail what you want to achieve, please? It would be great if you also attach screenshots pointing to what you refer to.
ex: go to the cosmetics category and appear only as attributes assigned to products such as brand and size.
You need to create a template and sidebar for each category and add sidebar elements to these templates.