You can use the w-[calc(100%-64px)] classname on DialogPrimitive.Content component to achieve margin on small screen devices
w-[calc(100%-64px)]