Sri Lanka's Prime Minister Ranil Wickremesinghe has told the military to do "whatever is necessary to restore order" after protesters stormed his office on Wednesday.
Wickremesinghe has been appointed acting president by President Gotabaya Rajapaksa, who has fled the country.
But the decision to leave him in charge triggered further protests demanding that the prime minister must also go.
Sri Lanka has been suffering from the worst economic crisis in decades.
Many blame the Rajapaksa administration for the crisis and see Wickremesinghe, who became prime minister in May, as part of the problem.
On Wednesday, for the second time in less than a week, protesters broke into a highly secure state building. This time it was the prime minister's office.
Echoing earlier scenes over the weekend of the occupied president's official residence, people in the prime minister's office lounged on plush sofas snapping photos, while others stood on chairs and desks waving the Sri Lankan flag.
In a television address, Wickremesinghe called on protesters to leave his occupied office and other state buildings and co-operate with authorities.
"We can't tear up our constitution. We can't allow fascists to take over. We must end this fascist threat to democracy," he said.
But asked whether the prime minister's statement was an indication that the army might take control, a human rights lawyer in Colombo, Bhavani Fonseka, told the BBC's World at One that Sri Lanka "doesn't have a history where military has played an active role in politics or government - unlike some of the other countries in the neighbourhood".
"We have had a very robust democracy and it's been elected representatives in that role. But we are also in an unprecedented situation, so anything is possible," she added.
Outside the president's office, the BBC's Tessa Wong said armed soldiers stood by impassively watching the protesters celebrate inside the office.
And demonstrators ignored the prime minister's calls for the office to be emptied.
"Our goal is for Gota to go home. And Ranil and other cabinet members to go home," one protester at the prime minister's office, Nixon Chandranathan, told the BBC. "We need truthful and honest leaders to build up Sri Lanka now."
"We feel proud," Satish Bee, a businessman who came to explore the compound after it was stormed told AFP. "There's no proper governance in this country. It has never been good... The youngsters, they don't want to continue like this."
The continued unrest came as the news arrived that President Rajapaksa had fled to the Maldives.
The president went into hiding and pledged to resign after his official residence was stormed on Saturday.
The leader, who has enjoyed immunity from prosecution as president, is believed to have wanted to flee abroad before stepping down to avoid the possibility of arrest by the new administration.
He is, however, yet to submit a formal letter of resignation.
The president's departure threatens a potential power vacuum in Sri Lanka, which needs a functioning government to help start digging it out of financial ruin.
Politicians from other parties have been talking about forming a new unity government but there is no sign they are near agreement yet. It's also not clear if the public would accept what they come up with.
Under the constitution, it's Mr Wickremesinghe who should act in the president's stead if the latter resigns, but he is also deeply unpopular.
That leaves the parliament's speaker as the next most likely to step in as caretaker president, constitutional experts say. But Mahinda Yapa Abeywardena is an ally of the Rajapaksas, and it is unclear whether the public would accept his authority.
Whoever does become acting president has 30 days to hold an election for a new president from among members of parliament. The winner of that vote could then see out the remainder of Mr Rajapaksa's term until late 2024.
On Monday, the main opposition leader Sajith Premadasa told the BBC he would be tilting for the presidency. But he also lacks public support and there is deep public suspicion of politicians in general.
The protest movement which has brought Sri Lanka to the brink of change also does not have an obvious contender for the country's leadership.
- BBC