I was told to backup my iPad with iCloud so I won't lose data while restoring. How?

My iPad keeps leaving screen I'm on and going back to desktop. I was told to reset it to factory. Also told me to back up as to not lose data with iCloud. Also is there anything else I can do to fix problem without losing data
Welcome to iMore! Here yo go:

1. Connect your iOS device to a Wi-Fi network. Go to Settings > iCloud > Backup, turn on iCloud Backup, then tap Back up Now.

2. To verify the backup, go to Settings > iCloud > Storage > Manage Storage, then tap your device name below Backups. The latest backup is listed with a timestamp and backup size.

https://support.apple.com/en-us/KM205091?cid=acs::applesearch
If you have issues, you might want to restore as new. Not from a back up. The problem may be in the back up.

Original thread: https://forums.imore.com/threads/i-was-told-to-backup-my-ipad-with-icloud-so-i-wont-lose-data-while-restoring-how.365631/