There are several reasons why you might want to appear offline on the Xbox app such as you do not want anyone to invite you anymore. This question will help you how you can appear offline on the Xbox mobile app. Without further ado, let us get straight into it.
Tap the rightmost icon in the bottom navigation bar to come to your profile screen
Now, tap the button that says Appear Offline or Appear Online. Since the mobile app is different than the console, all you need is one tap between the two choices
It should be noted that there is no do not disturb button on the mobile app.
This should be done from the console itself.
Other than that, the layout and interface might change over time.
Therefore, if you do not see Appear Offline or Appear Online options, check for wherever the profile is on the app