As an American who fell in love with an Englishman, getting married in England from abroad is a topic I'm intimately familiar with.
If one of you has UK citizenship, only the other partner needs the Marriage Visitor visa. You still give notice together, in the district where at least one of you has lived for the past seven days. I know several who married on a visitor visa, but it was always shaky ground and with anti-immigration crackdowns, I'd be nervous to follow this old, "loop-hole" advice. Especially if you plan to make the UK your home in the future.
If neither of you is British or Irish (say you’re both American), you have two options.
Option 1: legally married at home, vows in England. This is what most overseas couples do. Sign the paperwork at a courthouse or city hall before or after your symbolic ceremony. You come over on a normal visit for your ceremony. Symbolic vows can be done absolutely anywhere in England.
Option 2: legally married in England. You’ll need a Marriage Visitor visa, even if you don’t normally need a visa to visit, as you can’t marry legally on a standard visitor visa. You both have to live in a registration district for seven days before giving notice, then wait at least 29 days. That’s around five weeks in England, and it can stretch to 70 days if the Home Office reviews your notice. GOV.UK explains the rules.