iOS prioritizes the most recently installed or highest priority profile and if multiple Wi-Fi payloads are pushed for the same SSID, only one will be active, usually the one with the highest priority or last applied.
You can assign location-specific tags to devices Wi-Fi payloads accordingly, and avoid assigning multiple conflicting profiles to the same device.
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.