Custom Field Renderer in Mobile Composer?

See. This is how the solution I have is ugly! Works but very very ugly.

I would suggest creating some javascript to insert a class based on the product group. Then it would be very easy to set css to manage the styling. This is certainly possible. Wouldn’t take much time to do this.