The BBC is pro-Establishment rather than in favour of the government of the day. I.E. Strongly pro-EU / anti-Brexit. It's also decidedly pro-Woke.
I think you could argue it had a sort of pro-Cameron lean to it for a while simply because he initially positioned himself as quite a boring centrist, but I don't believe there was any policy alignment generally.
Less sure re: the scottish independence vote but I think in that case the BBC was sort of paralysed by what the outcome would mean for it, and that may have made it difficult for it to comprehensively handle.