Category / Subcategory

Captura de Tela 2022-08-29 às 21.54.31

I would like to know if it is possible to always display the visible category and subcategory… and not as it appears in the print where the main category appears hidden, only with the color at the beginning

Captura de Tela 2022-08-31 às 17.46.44

I wanted it to appear like this