How to stop Anchor Categories from displaying subcategories products?

In magento 2.4.5, if a parent category is an anchor. And a subcategory has product. Then that product automatically shows in the parent category. Even though the product is not checked off in the parent category. Is there any way to stop this default behavior? Because we don’t want to show some products in parent category and only show them in subcategories.

But we need layered navigation, so we set parent category as an anchor.

or is it possible to make the parent category NOT an Anchor, but display layered navigation.

Thanks in Advance.

submitted by /u/Technasium
[link] [comments]