How to set barmode for individual subplots?

I want to make a subplot with 1 row and 2 columns.
In row1-col1, I want to create a grouped bar chart.
In row1-col2, I want to create a stacked bar chart.

The problem is how do I update the layout i.e. set ‘barmode’ property for each subplot individually?

If i use fig.update_layout(barmode=“group”), then both the subplots become grouped which I don’t want.
Unfortunately, the method doesn’t have ‘row’, ‘col’ properties like update_xaxes(), update_yaxes().
Otherwise, it would have been easy to achieve my goal.
Can someone help?

Unfortunately, barmode is a figure-wide parameter at this time.