Can layout size vary when user changes tabs?

I have been working on a project where I had a case of showing a different set of data (different views) in different tabs. So I had to change layout size in each tab according to the dataset. Is it ok to change the layout sizes or does it cause inconsistency for the user.

Please check the wireframes attached and do the needful

when user switches from tab 1 to tab 2 there is a layout change hence the viewpoint of the user changes accordingly.

Tab 1 layout

Tab 2 layout