A 46-year-old school worker has been arrested on suspicion of grooming.
Officers arrested a man on Alexandra Road in Prestolee - after a group detained him.
The arrest and events leading up to it were broadcast on social media.
he arrest was made just after 6pm on Sunday and, police say, enquiries are ongoing.
A spokesperson for Greater Manchester Police said: “Police attended an incident on Alexandra Road just after 6pm on Sunday 10 October, where a group had detained a man.
“Officers attended, and a 46 year-old-man has been arrested on suspicion of grooming, and remains in custody for questioning."
The BBC has reported that the man works at a secondary school in Wrexham.
Wrexham Council said it was aware of the footage.
A spokesperson for the council said: "It would not be appropriate to comment on this matter as it relates to an ongoing process."
They added: “All matters will be dealt with through the appropriate policies, procedures and safeguarding arrangements in partnership with the relevant agencies.”
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules hereComments are closed on this article