APPLE phone devices unequal grid layouts

What is wrong with APPLE's phone devices when it comes to grids? It's impossible to get equal margins no matter what you'd do.

Here is an example:

enter image description here

Original image link

May anyone have a solution for me? Thank you!