You can assign the 2 side buttons with Logitech Options+; by default, they are usually activated for Back/Forward. In the software, go to "Buttons", click the desired side button, and then select the function.
If you cannot use the buttons directly, also check the button assignment in Options+ and make sure the mouse is recognized.