Double NAT is the one scenario you can usually fix yourself. Work through the options in order of preference, because each step down the list leaves more of the ISP device in the path.
The first choice is true bridge mode. Many cable combination gateways, including the units Comcast issues for Xfinity service, have a bridge mode setting that turns off the device's router and Wi-Fi and passes the public IP straight through to whatever is plugged into it.
Once you enable it, power-cycle the ISP device and then the UniFi gateway, since cable modems often bind the lease to the first MAC address they see. On DOCSIS hardware the management page usually moves to 192.168.100.1 in bridge mode, and the Wi-Fi radios go dark — which is exactly what you want.
The second choice is IP passthrough. AT&T fiber gateways such as the BGW320 have no true bridge mode. Instead they offer IP Passthrough, which hands the public IP to one designated device via DHCP while the gateway keeps handling fiber authentication.
In passthrough, set the allocation mode to DHCPS-fixed and select the UniFi gateway's WAN MAC address so the assignment is predictable. Be aware that the ISP device is still in the traffic path, so its own firewall options and session handling still apply even though your gateway now holds the public address.
Some providers let you skip the ISP router entirely. Verizon Fios, for example, delivers internet over Ethernet from the ONT on many installs, and a UniFi gateway can usually take that connection directly — though data-only plans are much simpler than plans that also carry Fios TV or voice through the ISP router.
The last resort is DMZ. If the ISP device offers neither bridge nor passthrough, give the UniFi gateway's WAN port a DHCP reservation on the ISP router and set that address as the DMZ host.
DMZ sends unsolicited inbound traffic to your gateway, so you only maintain port forwards in one place. However, you are still double NATed in the technical sense, and some ISP routers keep certain ports for their own management or voice services even in DMZ mode.
Whichever option you choose, turn off the ISP device's Wi-Fi if it is still broadcasting. A client that joins the ISP network instead of yours bypasses your UniFi zone firewall, your VLAN segmentation and any DNS filtering you have built.