Able to take remote but not able to control
Please try to remove the permissions and give them again to the TeamViewer application. This is required at least for screen recording and accessibility.