This is accomplished in vanilla by having minecraft:nether_portal be added to #minecraft:hoglin_repellents, so the equivalent block added by Immersive Portals should probably do the same.
ridjack commented
This issue still exists in the 1.17 version of IP.