If custom code or an app causes issues, revert to your original theme copy or remove the app. This restores core theme functionality and avoids downtime.
Go to Online Store → Themes → Edit code → Right mouse click to the file name → Open Timeline

Then select an earlier timestamp → press Save. If the issue is from an app, simply remove the app to restore core theme functionality.