The SNP must act quickly ahead of the general election as it faces its toughest period in 20 years, Nicola Sturgeon's former chief of staff has said.

Liz Lloyd was the closest adviser to the former first minister until she resigned from the top post and as leader of the SNP in March 2023 after more than eight years in charge.

Ms Lloyd said the SNP must "switch the narrative" in Scotland to one of an SNP fight back against Scottish Labour.

She urged Humza Yousaf to consider a "small" cabinet reshuffle as a way of more clearly setting his own agenda during what she described as the most difficult time for the SNP in 20 years. 

READ MORE: Michelle Mone's husband confirms couple are being investigated by crime agency

The party has suffered the after effects of a turbulent leadership challenge that saw divisions emerge within the party before the contest was ultimately won by Humza Yousaf.

Policies left behind by Ms Sturgeon, including controversial gender reforms and the fallout from the Bute House Agreement with the Scottish Greens, presented challenges for the new leadership.

An SNP spokesperson said the party is offering a "positive vision for the future" to voters.

But speaking to the BBC World at One programme, Ms Lloyd said "small rumblings" of division remained - but she insisted Mr Yousaf has a clear opportunity to turn the tide ahead of the expected 2024 general election.

"This is probably the hardest year the party has faced since maybe 2004/2005," she said.

"It needs to switch the narrative in Scotland from one of Labour gaining to one of the SNP fighting back - and being seen to credibly fight back.

"It's very much struggling to get its own message across. It has an opportunity. There is time ahead of a general election to do that, but it needs to do that really quickly."

SNP MP Joanna Cherry referenced a remark from Clement Attlee’ to Harold Laski in a tweet about Ms Lloyd's comments.

She said: “I can assure you there is widespread resentment in the party at your activities and a period of silence on your part would be welcome.”

A major setback came in October's Rutherglen and Hamilton West by-election, when Labour won the seat following the recall of former SNP MP Margaret Ferrier.

READ MORE: Denmark will have a new Scottish queen - sort of

Ms Lloyd added that Mr Yousaf could look to make changes ahead of the election, including a "small reshuffle" which would give him time to set out his own agenda.

"Humza Yousaf has had nine months to clear the decks of policies that were left over from the Nicola Sturgeon time - issues which were causing him difficulty," she said.

"He now has, ahead of the election, an opportunity to say: 'This is my agenda, this is what I'm about' - and deliver on it so that people can make a judgment on it.

"I think they need to look at making some changes - maybe a small reshuffle - things that put the SNP back on the front foot which it very much hasn't been for the last nine months."

An SNP spokesperson said: "With neither the Tories or Labour offering any alternative for people across Scotland being forced to pay the cost of a failing Westminster system and broken Brexit economy, the SNP is focused on continuing to deliver for communities and businesses across Scotland with the limited powers at our disposal.

"As we approach the next general election, the SNP is looking forward to offering people a positive vision for the future and the chance to elect hard-working MPs who will always put Scotland's priorities first."