The reason it does not work is, that you are using the search to filter an Elementor widget. The infinite scroll feature works only with the default results container. The elementor results behavior is controlled by Elementor. Some elementor widgets do have infinite scroll, but I do not recommend using it, it may lead to issues.