Hi,
You can create a WMI filter to apply the GPO to specific machines. Please refer to these links for more details.
Or you can just move the computers you want to apply a GPO to a sub OU and link the GPO to that.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.