If something should happen and you need to visit the British Embassy while you are in Majorca (Mallorca) then the embassy is in Palma city.

Convent dels Caputxins NÂș4
Edificio Orisba B
4th D
07002 Palma de Mallorca

Tel.: (00-34) 971-712445
Fax: (00-34) 971-717520

consulate.palma.mail@fco.gov.uk

The office hours are from 08.00 to 16.00 Monday to Friday and the Consulate is open to the public from 09.00 to 14.00.

In an emergency out of office hours you can contact our 24-hour Duty Officer by calling the British Embassy in Madrid on (00-34) 91-7008200, weekdays until 20.00hrs. After 20.00 and at weekends or fiestas call (00-34) 606-987-626.

https://www.gov.uk/living-in-spain