Hi autrae,
We appreciate you reaching out to us. We understand that the orientation lock feature of your device randomly turns off.
We’d like to gather additional details that may help us be in a better position to assist you.
Are you referring to the orientation lock for a specific app, or the orientation lock of the device itself?
We recommend that you make sure that you are using the latest version of iOS 14 or the latest version iOS 15.
While it isn't inherently assured that an update will resolve the issue, updating to the latest version of iOS for your device can help isolate potential software issues.
Kindly secure a backup and update.
How to back up your iPhone, iPad, and iPod touch
Update your iPhone, iPad, or iPod touch
Then, we recommend that you check for app updates. You can use the article below as a reference.
Update apps or use automatic downloads
Take care!