Based on the latest available statistics, racially- or religiously-motivated attacks are not massively widespread in the UK. For example, while racially motivated hate crimes (85,268 offences) increased by 12 per cent between year ending March 2020 and year ending March 2021, religious hate crimes fell by 18 per cent (from 6,856 to 5,627. Putting that in context, the UK’s population is approaching 70million, of which the Muslim population is around 4% AFAIK.
Every city in the UK has areas where crime and anti-social behaviour is more prevalent than elsewhere. If you’re visiting the UK as a tourist you’re probably unlikely to go anywhere near such areas. In general, national holidays and major sporting events are perfectly safe for all. The UK does not have a gun culture; shooting incidents are still relatively rare. Sadly, knife crime is increasing, especially amongst teenagers.
If you’re concerned, research the areas you intend to visit before you travel. The usual personal safety precautions apply wherever you go, of course eg https://www.victimsupport.org.uk/help-and-support/keeping-safe/personal-safety/ and https://www.met.police.uk/cp/crime-prevention/personal-safety-how-to-stay-safe/pickpocketing/
You could also try contacting the Muslim Council of Great Britain for advice https://mcb.org.uk/