Custom templates for a specific category

Have a look at this article in the the WordPress Theme Developer Handbook.

You should create a template in your theme named category-unicorns.php where unicorns is the slug for the parent category you want this template to be used for.
You can also create a template file category-5.php where 5 is the id of the parent category.