Magistrates have imposed a sexual risk order against a man accused of having ‘spied on girls’ in cubicles.

Zac Soliman, 23, appeared before Southampton Magistrates’ Court on Thursday.

Prosecutors say Soliman had ‘1.5million indecent images of children’ on his phone – despite him doing a factory reset on the device when police came knocking.

The court also heard alleged incidents of Soliman using his phone to record children in cubicles.

Prosecuting, Ned Sillett said: “On one occasion, the defendant put his hand – holding his phone – under a cubicle where a 10-year-old girl, and on another occasion, a 16-year-old girl, were present.

“They were both unknown to the defendant. This indicates that he has an active sexual interest in children

“His devices were also searched, and a vast quantity of indecent images were found – 1.5m in total."

READ MORE: Men who ran brothel in Southampton and trafficked sex workers swerve jail

Mr Sillett: “The defendant was arrested earlier this year and he took so long to answer the door, police forced entry.

“When they entered, they found the defendant had done a factory reset on his phone.

“Sex toys and lubricant were also found, and evidence suggests he carries them around with him in a bag in public places.

“There is a significant risk to the public, particularly children.”

Soliman, of Shaftesbury Road, Southsea, requested an adjournment so he could obtain legal aid.

Chair of the Magistrates’, Mr Dickinson said: “I will adjourn a decision for a full sexual risk order until June 10 to allow for legal aid for the defendant.

“This is a one-off opportunity but we feel there is a substantial risk that must be managed.

“We believe it is right and fair to impose an interim sexual risk order.”

Such an order is a civil court order that prevents a person from carrying out certain activities.

The full details of Soliman's order were not given in court.