It’s expected behaviour. There’s a way to add an ID to the pagenation button’s URL, but it will only work for the previous/next button, not the numbers.
The steps:
1. Add an HTML anchor to the grid block nested in the query loop block, eg. my-query.
2. Add additional CSS class to the previous/next button, eg.pagination-button.
3. Add this PHP code:
add_filter('generateblocks_dynamic_url_output','custom_query_loop_pagination', 10,2);
function custom_query_loop_pagination($url , $attributes) {
if( ! empty( $url ) && ! empty( $attributes['className'] ) && 'pagination-button' === $attributes['className'] ) {
$url = $url.'/#my-query';
}
return $url;
}