I believe what you're looking for is the Persistent browser session policy, keep in mind that a premium license is required and as well as having the Conditional Access Administrator, Security Administrator, or Global Administrator role.
Here is the Microsoft documentation and steps regarding Persistent browser session (scroll down to Policy 2: Persistent browser session).
Please accept as an answer if this was helpful.