Whenever you create a custom template and want to apply it to a number of products, you need not do it one by one.
Attachment 12944
Get the code to implement product grid serialization in Magento 2 here. It enables a product grid from where you can select specific products at a time to apply a template or an option.
For more details, visit https://meetanshi.com/blog/create-pr...-in-magento-2/