Determine if the sentence contains a misplaced or dangling modifier, or if the sentence is correct.

Studying in the library, my phone suddenly rang loudly, disturbing the quiet atmosphere.
the answer is misplaced modifier
Why is this answer correct?

This answer is correct because the modifier "Studying in the library" is misplaced. It suggests that the phone was studying in the library rather than the speaker. The sentence would be clearer and more accurate if it was revised to say "While I was studying in the library, my phone suddenly rang loudly, disturbing the quiet atmosphere."