Structure with dynamic column count

Hi there

is it possible to build something like a structure with dynamic column count?
I want to achieve following:

In a kirby block there is a number or range field where you can choose how many columns the structure should have.
Next is a structure field with dynamic column count based on the section above.

I’d like to use this as a dynamic table builder.

Maybe better use the table field? Table Field | Kirby CMS Plugins

The problem is, I want to use a specific set of blocks inside a column cell.
In the Table field I can only use tha kirby writer.

Well, out of the box it is not possible to use a dynamic number of fields in a structure, you would have to come up with something custom.