Condition challenge based on product category

Hi everyone,

I have a category like this.

Mobile
-apple
-samsung
-google

Now the question is, if I want to create a condition so that the desired element is displayed only in the parent category (mobile) and not in the child categories, how should I set the condition?

Also, if I want it to be displayed in the child category in addition to the parent category, what condition should I set?

Thanks in advance for your help.

Is there any way to do this right now?