The problem I came across when making a modification to the layout in the Joomla contact component was it wasn’t updating on the website. I even cleared out the cache and it still didn’t work.
It wasn’t until I realized it was because of the template that I was using. Templates can override the layout of Joomla components. These are located under the templates directory structure. Normally they are under template/html/com_contact/contact/default.php (for example, here is the contact component layout).