Applying Modified Template to all existing notes

I have set up different templates for notes in different folders for different use cases. But all templates cannot be foolproof. Sometimes, I want to update a few more frontmatter and sections in a template. Is it possible to apply the modified template to the existing notes created in that specific folder?