How to create app icons for macOS 26 and maintain compatibility with older OS's

I created a new icon with Icon Composer but still have a grey border.

How did you manage to have no border?