The Danish government on Wednesday issued new guidelines banning prosecutors from appearing in court while wearing religious headscarves, extending to state lawyers a neutrality rule that has applied to judges for more than a decade.

"We are now introducing rules that require prosecutors, just as is the case for professional judges, to appear religiously and politically neutral when they take part in court hearings," Justice Minister Nicolai Wammen said in a statement. "This includes religious headscarves, which prosecutors will no longer be allowed to wear in court," he added.

Denmark's judges and lay judges have been banned from wearing religious or political symbols during hearings since 2009. Until now, the rule has not applied to prosecutors. The ministry said the new guidelines would take effect "as soon as possible," though it gave no official date, and did not say what consequences prosecutors who refuse to remove a headscarf would face.

The debate was prompted after Zahra Sediqi wrote on LinkedIn that she was proud to be Denmark's first prosecutor to wear a headscarf. The announcement came as the government debates whether to ban headscarves in schools and universities, and follows a 2018 ban on full-face Islamic veils such as the burqa and niqab in public places.

Prime Minister Mette Frederiksen has expressed support for a ban on headscarves in primary and lower secondary schools — a proposal put forward by right-wing and far-right parties — and has said she regards the veil as "an expression of oppression." She has also acknowledged the proposal could conflict with freedom of religion and expression.