How to force a grid view on blog created with the CMS?

I have a blog that is created using the CMS.
The blog directory grid is “broken”.
There are empty cells in the grid (desktop view), probably due to images of varying sizes.

The broken grid: