Activating Jetpack and enabling the features under Performance & Speed in Jetpack resolved the issue.
Elementor is a great drag-and-drop builder for WordPress. The Pro version we are using for one of my client sites has global section for widgets and sections. It does not have a global feature for the header, footer, sidebar, and the like. To augment it, we use AE templates or Anywhere Elementor templates to create a global header, global footer, global sidebar, and global 404 page. Anywhere Elementor allows you to easily use the template to your PHP files like the header, footer, sidebar, and 404 php files.