You can create 3 types of the stack:
1 - Understanding Physical Stacking
Physical Stacking helps provide easy management and physical redundancy. Utilizing two physical stacking ports on the back of each switch, a stack can provide for gateway redundancy at layer 3 and dual-homing redundancy at layer 2. Only a single uplink is required to provide connectivity to the stack once all stacking cables are installed.
2- Understanding Flexible Stacking
Availability and redundancy are most helpful at the distribution layer of a network. On MS420 and MS425 series switches, any two ports can be configured as stack ports. This allows for a full redundancy setup for your gateway and minimizes the impact of a failure in the network.
3 - Understanding Virtual Stacking
With the MS product, it's very easy to manage and deploy hundreds of ports on a network. This is made possible via the use of Virtual Stacking, which is the ability to easily push configuration to hundreds of ports in the network regardless of where the switches are physically located.
For the first two, you need to connect the switches directly.
In the third (virtual stack), you can configure multiple geographically separated switch ports at the same time, but both do not share any settings.
https://documentation.meraki.com/MS/Stacking/Switch_Stacks
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.