Hello,
You can use a custom style (https://support.office.com/en-us/article/Style-basics-in-Word-d382f84d-5c38-4444-98a5-9cbb6ede1ba4) to keep the styles when replacing contents, but there's no method to change a style in a word (it must exists in the template or added with phpdocx).
Regards.