A teenager from Ayrshire has admitted making offensive TikTok accounts and uploading obscene content glorifying a mosque mass shooter.

The 17-year-old, who we cannot name for legal reasons, pleaded guilty to one charge when he appeared at Kilmarnock Sheriff Court last week.

The youngster, who lived in Ayrshire at the time but has since moved elsewhere, admitted to behaving in a threatening or abusive manner by his actions when he stood in the dock on Thursday, October 12.

He done so by, between October 22 and November 1 of last year, repeatedly making accounts under offensive usernames on social media video sharing site TikTok and uploading content containing offensive material for public viewing.

This offence was aggravated by involving religious prejudice and being racially aggravated.

As he appeared in the dock at Kilmarnock Sheriff Court last week, the presiding Sheriff Mundell described the narration of events as "very concerning".

It followed the court's procurator fiscal depute running through the police report describing the content within the accused's TikTok account.

The account and its content were being monitored after police became aware of one post in particular.

This account was made under the name "Tarrant" and had over 100 followers.

This name was made in reference to Brenton Tarrant - the man responsible for killing 51 people in two mosques in New Zealand back in 2019.  A further 41 people were injured during the incident. 

Tarrant was sentence to life in prison without parole.

The court heard how the accused Ayrshire teen, who would have been aged 16 when he made these accounts, often featured the mass shooter in his videos.

One such video displayed pictures of Tarrant, who he branded a "superstar".

The court also heard how the teen would brag about being "banned from Jew TikTok" on his account.

Videos also included pictures of mass murders and shootings.

One in particular made reference to Tarrant's attacks again - specifically the fact that for periods during the attacks in Christchurch, New Zealand, Tarrant live streamed what he was doing on Facebook Live.

The accused teen would refer to the live stream as "the best 17 minutes I have watched".

Other videos would include offensive pictures of Jewish people, with one in particular accompanied by hashtags such as "Jew, Meme, HailVictory and WhitePower".

After monitoring the account, police attended the property of the accused in April of this year and were invited in by his mother.

The accused's devices were examined and he was cautioned and charged. He made no reply.

As he stood in the dock, Sheriff Mundell stated that this was a "very concerning narration" and that she would need full background reports on the teen before passing sentence.

His defence solicitor said they would reserve anything they had to say until these reports are gathered.

The accused will now return to court at a later date and has been granted bail until that time.