Find the first hash before identifying query content. A question mark that appears after the hash is inside the fragment. The first question mark before the hash starts a query when one is present.
Check two printed manual addresses
In https://manuals.example/book?mode=plain#intro, the query is mode=plain and the fragment is intro. In https://manuals.example/book#intro?mode=plain, there is no query. The complete fragment is intro?mode=plain. IETF query and fragment syntax
Keep punctuation in the answer
Both cards contain the word plain, yet the word occurs in a different component. Read each card from the first hash backward to check where its question mark sits. This gives a verifiable answer independently of what a particular manual page renders.
Recover the view with a known entry point
If you intended the plain view from a known bookmark and the current bar places mode=plain inside the fragment, reopen the known entry point. Check the loaded view as well as the address, since only the site can define what either marker does.