Add this JS script in Elementor → Custom Code at the end of the body.
(function ($) {
$(window).load(function () {
if (window.location.hash) {
console.log("We have some hash!");
var hash = window.location.hash.replace("#", "");
console.log("Filtering...");
$(`li.elementor-portfolio__filter[data-filter=${hash}]`).trigger(