Unfortunately, given human nature and examples demonstrated on these forums, there's no easy, simple, polite or complete solution to this sort of circumstance.
First, consider the number of messages posted on these forums from people who are delighted by the sense of importance they get from carrying what is considered “professional" camera equipment. Add to that the anger those people display when they find they’re restricted in using that equipment in favor of paid photographers.
And, at weddings, you get demonstrated situations where amateurs with expensive equipment have ruined wedding pictures
attempted by hired wedding photographers.
Unfortunately, there's no foolproof way to handle the situation of people getting in the way at weddings other than to ban any cameras other than the ones used by the hired photographers and videographers. That means security checks and turning away people with cameras.
Of course, when that happens, there will be an enraged, spittle-flecked message pounded out and rammed onto these forums from a person angered beyond control that anyone would dare tell them what to do with their expensive camera equipment.
If common courtesy and restraint were truly common, there would be an easy solution, but there's too much to show there's no simple or clean way out.
On top of that, there are the horror stories of conflicts between still photographers and videographers at the same weddings, but that's for another discussion.