Enabling a CMS item to have a unique layout

Dearest Webflowers,

I want a specific CMS item to have a unique layout, e.g. in a grid can have 1/2/3 CMS items in a row, depending on an option/toggle I activate within the Collection.

What’s the best way to accomplish this?