I am trying to create a custom Popup Template but it's not rendering on the map.

When I click something on the map, it still shows the old /default popup.

Why is the old default one still showing? Am I doing something wrong?
When I inspect the default popup, it says the classname is Esri popup wrapper.