LOCTITE gasketing compound can simply be applied on the flanges and then both the flanges can be bonded together. It comes in a tube which can be used to draw any gasket shape as per the requirement. You can watch the how to apply video on this link - https://youtu.be/llt7GT5cRC0