View only primary category (under title in post)

In the view of single post, I would like to see only the main categories, not the subcategories. How can I proceed?
I am referring to the categories that appear under the title.
Thanks for your response.

Hey there

Let me see it, please provide a link to that post

here the link: