Hi @prashanthvarma42343,
When the new paths are not loading correctly (theme layout is affected), it means that the new paths for CSS and JS are not found.
This usually happens on Nginx servers if the new paths are not added in Nginx config and reloaded the Nginx service.
On Apache servers if the Allowoverride is no set to ALL so that the .htaccess file can load the new paths.
Here is a tutorial we wrote for cases like these to help you configure the server correctly:
https://hidemywpghost.com/theme-not-loading-correctly-website-loads-slower/
To configure the plugin on Nginx Servers:
https://hidemywpghost.com/how-to-setup-hide-my-wp-on-nginx-server/
To configure the plugin on Apache Servers:
https://hidemywpghost.com/how-to-set-allowoverride-all/
Note! Follow the instruction from the plugin once you changed the paths if there are some hosts that need special configuration like WP Engine.