If you have a backup of your previous device, whether it was created using iTunes or iCloud, you can easily restore it on your new device.
iTunes Backup: If you used iTunes/Finder to back up your old device, connect your new device to a computer with the latest version of iTunes installed. Launch iTunes/Finder and select your new device. Then, choose the option to restore from an iTunes backup and select the backup file you want to restore from. This will transfer all your data, settings, apps, and other content from the backup to your new device.
iCloud Backup: If you backed up your old device using iCloud, during the setup process of your new device, you will be prompted to sign in with your Apple ID. Make sure to use the same Apple ID that was used to create the iCloud backup. Then, follow the on-screen instructions to restore your new device from an iCloud backup. This will download and install all your backed-up data, including apps, settings, photos, messages, and more.
Restoring from a backup ensures that your new device will have the same content as your previous one, making the transition seamless and preserving your data.