These steps will work for all directory related issues:
First you need to check which page is connected as a directory page in Buddypress Pages, For that Go to wp-admin > Buddypress > Pages Tab and check here
You can connect any page and these pages will start working as your directory pages. Now, If we are taking an example of how to edit the members directory page via Elementor. So what you need to do is first, set an option “none” here and then reload the members directory page, you will get an option to edit the page via Elementor . This is because, now it will start acting like a normal page. There you can edit the component and after saving connect the page here again. Check this: https://docs.wplms.io/administrator-guide/step-by-step-guide-for-administrators#d-directories