Frame autolayout

Frame doesn’t rearrange as it should, as it is shown here:

For me it stays in one group:

How to fix that?

I am following this tutorial: https://youtu.be/31wzhvz0vsw?si=D1km-oPVqQygW56v&t=592