Open files in local or online Office applicationsFollow
The administrator of an environment can enable/disable the option to open documents in local applications of Office. To enable/disable this option as an administrator, go to the settings page. SharePoint documents and in the Office web apps section, enable or disable the "User can open files in local applications".
When this function is enabled, the user has the ability to open files in the web editor or in the local app. If one of the options is not available, it will automatically choose the option that is available.
If you are using an incognito browser or delete your Cookies these preferences will be lost. These settings have to be set per device.
This also applies for the context menu.