The dynamics in Wales are different from those in Scotland.

Ap Iorwerth, who was appointed the first non-Labour first minister of Wales after May’s Senedd election, had ruled out pushing for a referendum on Welsh independence during his party’s first term in government.

His government intends to set up a national commission to “lay the foundations” for future plans for Welsh independence.

In the meantime, Welsh ministers are seeking extra powers to be transferred to Wales, including over policing and youth justice – which Burnham has said he is “open” to the idea of.

Ap Iorwerth said Andy Burnham had “a lot to learn” about “how devolution to a nation is rather different to devolution to a region or a city of England”.

“I want to have a positive relationship with him, I believe he wants to have a positive relationship with me,” he said.

In Northern Ireland, the first and deputy first minister have identical powers and responsibilities and the Democratic Unionist Party’s (DUP) Emma Little-Pengelly is the deputy first minister.

Little-Pengelly criticised O’Neill for attending Monday’s talks.

The UK government said: “The prime minister is committed to delivering change across all four nations of the United Kingdom and believes strongly in the union.”

The talks are likely to cover the way the devolved nations are funded by the UK government.

Welsh ministers have long called for the Barnett funding formula to be reformed, claiming it disadvantages Wales.

However, it is argued Scotland does well from the formula.

Before he became prime minister, Burnham made the case for change, but on his recent visit to Wales he played down the prospect of reform.

The devolved leaders will meet the prime minister next month.

Labour leader in Wales, Ken Skates, said: “Plaid have given people nothing since the election.

“They clearly want to use power to break up Britain, weaken Wales and spend their time obsessing over more powers for their politicians.”

Welsh Conservative Senedd leader Darren Millar said: “Instead of obsessing about independence, the first minister should be focused on dealing with the crisis engulfing the Welsh NHS and the declining standards in Welsh schools.”

Dan Thomas, Reform UK’s Welsh leader, said: “The first minister can’t get a grip of NHS waiting lists or our education system, but apparently has time to tell us what we all know. That he wants the break up the UK.”