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 → Theme file history, then select an earlier timestamp. If the issue is from an app, simply remove the app to restore core theme functionality.