WordPress includes a handy filter named single_template which you can use in a custom function.
Here’s a few examples:
Note: Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
Single Post Template for Posts In Different Categories
This code enables you to display a custom single post template for all single posts in category-1
You need to subscribe to fully access this tutorial.