Assuming it's a DT175 motor in a YZ-D frame:
DT air box is very different.
Personally, I'd refit the YZ air box, and make up an adaptor to seal the gap between the YZ airboot & the DT carb.
If the DT intake manifold is still soft, it's possible to jam a YZ carby in - but that's only helpful if the DT manifold points the carby in the correct direction.
Third option is to make a new intake manifold to join the DT barrel to the YZ carb (ie: DT bolt pattern, YZ carb diameter).