Hi Gallego,
The gray box around pasted icons in Teams chat is likely due to the default formatting applied by the application. Teams might be automatically creating a container or wrapper around the image to ensure proper display and prevent unexpected behavior. Unfortunately, there might not be a direct setting to remove this gray box within the current Teams interface.