If the child stays with the parent who applies to stay in the UK, it would have to make sure the child is held exclusively in custody. Parent of a British Child Visa UK is the best way to live with the child who stays in the UK.
Sole custody may or may not have been granted by a judge or other parents. Sole custody makes the person the child's primary caregiver and determines all aspects of childhood.