@Barbara Orefice ,
Does this issue persist all the time? Or what changes do you do before this issue happened?
Does anybody else have the same issue?
Do you try to login other machines?
Except the troubleshooting article provided by Udara, you could also confirm with your IT admin if he builds some Conditional Access Policies to limit to use desktop client. For more information about Conditional Access, you can refer to this article.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.