Hello raul perez,
Welcome to Microsoft Q&A.
Windows 11 handles “tablet mode” more dynamically and automatically. It’s essentially an adaptive UI that kicks in when a convertible device, like a 2-in-1 laptop, is in tablet mode (e.g., screen folded back, keyboard detached).
Based on your needs, you might be able to disable this mode by modifying the registry.
Type “Registry Editor” in the search box to open it, then navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl\ConvertibleSlateMode
Set the value of ConvertibleSlateMode to 1 and see if that helps improve the situation.
Disclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.
Best wishes
Ami | Microsoft Q&A Support Specialist