Toilet training children can be challenging especially when they have sensory processing differences or demand avoidance. It is very common for some autistic children to take longer to learn skills around toileting than their peers. Here are some links to helpful information around toileting:
Eric the Bladder & Bowel Charity
Guidance on special toileting needs in schools and early years settings by Warwickshire County Council