Help with Building System (optimising for Mobile/Tablet)

So I have done a fair amount of research here and on Youtube however found no answers.

I’m trying to make a building system on my latest game be optimised for mobile and tablet users to play. Similar to Azure Mines like this

Does anyone know how they achieved this? The automatic placing x grids away from the character?