Need help setting up category list images

I’d use this new component:
https://github.com/jordanvidrine/discourse-category-group-boxes.git

It will give you a cleaner markup to style with css. And have the same look on desktop and mobile with almost similar class selectors.