There is no such thing as a British accent. Scotland alone has many different accents. England even more.
it’s difficult to put a precise number on how many accents there is in Scotland as people will disagree over what constitutes a separate accent etc.
For example, many people in the west of Scotland from around the Glasgow area will class themselves as having a Glaswegian accent, whereas others will call it a ‘Lanarkshire’ accent.
The biggest difference in accent is found between the east and west coast; you have Glaswegian/Lanarkshire/Ayrshire on the west coast and you have your Edinburgh/Fife on the east coast.
There are also multiple highland accents, and several western isles accents from the inner and outer Hebrides. Orkney and Shetland which form the northern isles also have their own distinct accents. Aberdeen and Aberdeenshire also have a distinct north-east accent, sometimes called Doric. However, even the fishing villages in the surrounding areas will sound different, so it’s difficult to say where one accent stops and another starts and what constitutes a separate accent.
It’s also worth noting that Glaswegians and indeed anyone from the surrounding Glasgow/Lanarkshire area have a terrible habit of calling anyone who speaks in anything other than a broad Glaswegian/Lanarkshire accent a ‘teuchter’ (Lowland Scots slang for a Highlander) I get called a teuchter all the time since moving to Glasgow from the Outer Hebrides lol.
Even in Glasgow itself there is a distinction between the affluent west-end of the city and the rest of it - in these areas, such as Bearsden and Milngavie, the residents have a distinct ‘twang’ to their accent, which is sometimes mocked as a sign of being posh and because the accent is often copied by students - particularly Glagow University students - who wish to fit into a particular clique.