Hello,
To get the Ajax pagination install and activate the WooCommerce Infinite Scroll and Ajax Pagination plugin (Appearance > Install plugins), go to plugin settings and follow the documentation https://xstore.helpscoutdocs.com/article/65-woocommerce-infinite-scroll-and-ajax-pagination-settings
Unfortunately, there is no option to enable Ajax for the view mode on the shop grid.
Regards