I hope you are well today and thank you for your question.
Could you please try achieving this by using the custom code solution posted in the following topic?
https://colorlibsupport.com/t/category-above-post-varies/#post-51548
Best Regards,
Movin