Different keyboard mapping on external keyboard
The mapping of the input source you have selected in the "flag" menu should always apply to both the internal and external keyboards.  The standard US keyboard has one less key, so it will be slightly different:



If yours does not behave that way, something is wrong.