I recently started using the Logitech MX Keys and MX 2 mouse multi-device feature. Device 1 is Windows and device 2 is Mac OS. The biggest problem was the behaviour of ~ key and home/edn keys. Searching online gave me a solution
Swapping PC and Mac layouts
FN+O — swaps PC layout to Mac layout
FN+P — swaps Mac layout to PC layout.
Key behaviour
~ key
FN+U — swaps ‘#’ and ’A’ with the ‘>’ and ’<’ keys
NOTE: This only affects European 102 and US International layouts. FN+U only works on Mac layouts*, so* make sure you have switched first to Mac layout by pressing FN+O.
Function keys
FN+ESC — swaps between the smart keys and F1-12 keys.
Other Keys
FN+B — Pause Break