To make that device your own and remove your mother's account without affecting her data on other device(s), the best option is to create a new user account on that laptop, then restart the laptop, log into the new account and delete the account associated to your mother's Microsoft account.
The method to do that depends on the version of Windows installed on the laptop, is that Windows 10 or 11?