So there is no smoke or surfaces preventing ranged characters from getting a line of sight to attack?

Does the same thing happen if the host plays in single player?

Please email supportdos2@larian.com, with a description and a save or two before/during combat where this happens (or a Dropbox or Google drive link, etc).
Each save is a folder in the '..\Documents\Larian Studios\Divinity Original Sin 2\PlayerProfiles\<ProfileName>\Savegames' folder. In Windows Explorer you can zip file(s) and folder(s) by right clicking on it/them and selecting 'Send To | Compressed (zipped) Folder'.