Hello,
You can use the staging website to edit theme, test plugins and then move these changes to live site. Also, you can try Duplicator plugin to move localhost copy of the WP to live domain.
Regards