I see that you've not yet received a reply to your post. Here is some information you can provide that may help others to respond.
What behavior are you seeing with the Instagram app?
Can you describe what you mean by "it still turns off as soon as I leave the settings"?
Which iOS version are you using on your iPhone?