Hi AllanChes,
I'm Rodrigo and I will help you.
When restarted, the system reverts back to the keyboard layout of the language set to be the preferred.
To force a keyboard layout to be the default, go to Settings > Time & Language > Language > Keyboard, under "Override for default input method" select the keyboard layout you want and it is done.