Replacing elements in template root not working although advised

I believe this answer here directs me to the fact we need to modify a “container” rather than an element at root level.