Hi @anuragmittal ,
Wildcard is no supported from version 4.12
Refer to this reference -
https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html
It mentioned you can use defaultTemplatePopupEnabled property of the view popup widget.
However, so far map image layer is not supported yet.
In my opinion, you have two options
Option 1. When you publish map image layer, enable all popup for all layers and use the portal item id.
e.g. https://codepen.io/thanhtetaung/pen/yLaZZQg
To enable all layer, below items might help you and save time.
https://community.esri.com/t5/arcgis-enterprise-questions/turn-on-all-pop-ups-for-map-image-layer-vi...
Option 2: downgrade to 4.11 or use jsapi 3.xxx with wildcard
e.g. https://codepen.io/thanhtetaung/pen/OJRddyd
Hope these will help you.