Restore an earlier version
Every AI change is tied to a chat message. Use the restore option on an earlier message, or open History from the / menu.
Save a backup
Create a backup before a big change. Backups are saved to your account and survive closing the browser; the most recent 20 are listed. You can also ask the chat: "Make a backup".
Your live site
Restoring changes your project, not your live site. Publish again to put the restored version live.