Container visibility issue on round edges

Facing an issue with visual design. I use a group with 10px (or 20px) rounded edges as a “widget” container. The issue is that anything contained in these groups overflows the rounded edges and doesn’t respect the rounded edges of the enclosing container. How can I solve this without going directly into CSS or annoyingly styling the contained elements?
Screenshot 2024-03-26 at 07.45.19

Hi, without using CSS, the most straightforward way would be to give the image the same round radius as the container