How to restrict filter/facet fields based on the category selected

Hi Team,

I am quite new to Algolia, your support will be much appreciated. Is there a way how to restrict facets/filters based on the category selected.

Let us say i have three products out of which two products have common attributes.
Is there a way we can hide the facet/filter attribute for particular category/product selection.
In the screen shot attached, how can i hide the brand and Ram attributes when mobile category is selected, similarly camera and display should be hidden when Computer is selected…??


Let me know if any further information required on this. Please find the JSON used below.

[
	{
	"ram": "20gb",
"display": "lcd",
"brand": "OnePlus",
"camera": "2PX",
"headset": "wired",
"category": "mobile"
  },
	{
	"ram": "10gb",
"display": "led",
"brand": "Samsung",
"camera": "10px",
"headset": "wireless",
"category": "mobile"
  },
  {
"ram": "10gb",
"display": "led",
"cpu": "compact",
	"brand": "OnePlus",
"camera": "2PX",
	"category": "computer"
  },
   {
"ram": "20gb",
"display": "lcd",
"cpu": "inbuilt",
	"brand": "Samsung",
"camera": "10px",
	"category": "computer"
  },
   {
"hdmi": "yes",
"android": "yes",
"cable": "black",
	"category": "tv"
  },
   {
"hdmi": "no",
"android": "no",
"cable": "blue",
	"category": "tv"
  }
]